import axios from '@/axios'
// import qs from 'qs'

export function login(data) {
  // const data = Qs.stringify(loginForm)
  // eslint-disable-next-line object-curly-spacing
  return axios({
    url: '/auth/admin/login',
    method: 'post',
    params: data
  })
}

export function update(adminQo) {
  return axios({
    method: 'put',
    url: '/admin',
    data: adminQo
  })
}
